var exchange = {
	initPages: function(sum, callback) {
		var pages = new Page({
			id: 'pages',
			count: 10,
			sum: sum,
			fun: callback
		});
	},
	init: function() {
		var params = api.queryParams();
		jQuery('.message-head li').eq(params.type || 0).addClass('active');
		this.initPages(23, function(res) {
			console.log(res + 1);
		});
	}
}

exchange.init();

//myFunction = function() {
//	return '确定要离开吗？离开将不会保存填写的内容！！';
//}